package com.example.demo.factorypattern;

/**
 * @author :xie
 * Email: 1487471733@qq.com
 * Date: 2018/9/6
 * Time: 18:22
 * Describe:
 */
public class Demo {

    public static void main(String[] args) {


        Factory factory = new Factory();

        Car red = factory.getCar("red");
        red.draw();
    }
}
